














<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="renderer" content="webkit" />
    <title>高企认定申报--知识产权汇总表--添加</title>
    <link rel="stylesheet" type="text/css" href="/xonlinereport/css/css/public.css"/>
    <link rel="stylesheet" href="/xonlinereport/plugins/valid/src/scss/default.css">
    <link rel="stylesheet" type="text/css" href="/xonlinereport/plugins/Font-Awesome/css/font-awesome.css"/>
	<style>
		.checking{
			display: none;
			padding: 2px 10px 0 0;
			color: orange !important;
		}
		.check{
			display: none;
			color: #514e4e !important;
			width: 310px;
		}
		.red{
			color: red !important;
		}
		.background-yellow{
			font-weight: bold;
			background-color: yellow;
		}

	</style>
</head>
<body>
<input type="hidden" value="4">
   <div class="content" id="zscq">
       <div class="contentIn">
            <form id="addForm" name="addForm" action="/xonlinereport/inforeport/DataInnocom/saveOrUpdateDataEprIntellectualPropert.do" method="post" enctype="multipart/form-data">
<table class="wwFormTable">
			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="dataEprIntellectualPropert.id" value="" id="dataEprIntellectualPropert.id"/>  </td>
</tr>

			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="dataInnocom.id" value="" id="dataInnocom.id"/>  </td>
</tr>

			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="dataInnocomId" value="" id="dataInnocomId"/>  </td>
</tr>

			<input type="hidden" id="dataId" name="dataId" value="059f82ddd87411ebbf5000163e479657"/>
			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="dataEprIntellectualPropert.dataId" value="059f82ddd87411ebbf5000163e479657" id="dataEprIntellectualPropert.dataId"/>  </td>
</tr>

			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="dataEprIntellectualPropert.entId" value="2021061909453551210" id="dataEprIntellectualPropert.entId"/>  </td>
</tr>

			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="dataEprIntellectualPropert.createDate" value="" id="addForm_dataEprIntellectualPropert_createDate"/>  </td>
</tr>

			<input type="hidden" id="fromIpId" name="dataEprIntellectualPropert.fromIp" value="1"/>
			<input type="hidden" id="xmbhId" name="dataEprIntellectualPropert.pssxmbh" value="CN201621048527.2"/>
			<input type="hidden" id="cpaId" name="dataEprIntellectualPropert.cpa" value="瑞邦晟达科技（北京）有限公司;邦达诚环境监测中心（江苏）有限公司"/>
			<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="curYear" value="0" id="curYear"/>  </td>
</tr>

			<input type="hidden" name="struts.token.name" value="token" />
<input type="hidden" name="token" value="GW54IB0ZAEIBQQF1NKQDOUVS6ZSE1ZEK" />
         <!--box-content start-->
         <div class="box-content">
             <div class="box-header " >
                 <h2 class="text-center">知识产权汇总表<small class="h2-small">
                     <span class="font-red">* </span>号为必填项</small>
                 </h2>
             </div>
             <div class="box-body">
                 <!--div-two start-->
                 <div class="div-two">
                 	<div class="uploadAttachment">
                 		<div>
                 			<h3>该知识产权已被瑞邦晟达科技（北京）有限公司于2018年申请高企时使用，请核对知识产权编号输入是否正确！</h3>
                 		</div>

         			</div>
                     <div class="row">
                         <div class="form-group input-w300">
                             <label>知识产权编号：IP<span class="font-red"> *</span></label>
                             <input type="text" placeholder="请输入" id="propertyNo"  name="dataEprIntellectualPropert.Pzscqbh" value="01"/>
                             <span id="propertyNoTip"></span>
                         </div>
                         <div class="form-group">
                             <label>类别<span class="font-red"> *</span></label>

                             <select name="dataEprIntellectualPropert.Plb" id="propertyCategory" class="select-w300" onchange="findIpBySqh();">
    <option value="0"
    >--请选择--</option>
    <option value="2" selected="selected">实用新型专利</option>
    <option value="3">外观设计专利</option>
    <option value="4">软件著作权</option>
    <option value="12">发明专利（非国防专利）</option>
    <option value="6">发明专利（国防专利）</option>
    <option value="7">植物新品种</option>
    <option value="8">国家级农作物品种</option>
    <option value="9">国家新药</option>
    <option value="10">国家一级中药保护品种</option>
    <option value="11">集成电路布图设计专有权</option>


</select>


                             <span id="propertyCategoryTip"></span>
                         </div>

                     </div>

                     <div class="row">
                         <div class="form-group input-w300">
                             <label id="_numlab">专利号/著作权号<span class="font-red"> *</span><span id="ipSpanId" class="font-red"></span></label>
                             <input type="text" placeholder="请输入" id="propertyAccredit" name="dataEprIntellectualPropert.Psqh" onkeyup="this.value=this.value.replace(/\s+/g,'').replace('(','（').replace(')','）').toUpperCase()"
                             	readOnly="true"
                             	onblur="findIpBySqh();"
                             	value="ZL201621048527.2"/>
                             <span id="propertyAccreditTip"></span>
							 <span id="checkingTip" class="checking"></span>
							 <span id="checkTip" class="check"></span>
                         </div>
                         <div class="form-group input-w300">
                             <label>知识产权名称<span class="font-red"> *</span></label>
                             <input type="text" placeholder="请输入" id="propertyName"  name="dataEprIntellectualPropert.Psqxmmc" value="环保无人机水样采集容器" />
                             <input type="hidden" id="propertyNameyc"  value="环保无人机水样采集容器" />
                             <span id="propertyNameTip"></span>
                         </div>
                     </div>
                     <div class="row">
                         <div class="form-group input-w300">
                             <label>获得方式<span class="font-red"> *</span></label>

							 <select name="dataEprIntellectualPropert.Phdfs" id="propertyWay" class="select-w300">
    <option value="0"
    >--请选择--</option>
    <option value="1">其他</option>
    <option value="2" selected="selected">自主研发</option>
    <option value="3">受让</option>
    <option value="4">受赠</option>
    <option value="5">并购</option>


</select>


                             <span id="propertyWayTip"></span>
                         </div>
                         <div class="form-group input-w300">
                             <label>授权日期<span class="font-red"> *</span></label>
                             <input type="text" id="txtDate" placeholder="请输入" name="dataEprIntellectualPropert.Psqrq" readOnly="true" onfocus="showDate();" readonly="true" value="2017-03-15" />
                             <span id="txtDateTip"></span>
                         </div>
                     </div>
                     <div class="row">
			             <div class="uploadAttachment">
			             	<h3>附件</h3>

			            			<div id="fileId">
			              		<a href="javascript:;" class="btn uploadBtn" onClick="fileClick('yyzzFile')">点击上传</a>
			                  	<input type="file" id="yyzzFile" name="upload" value=""
			                         onchange="handleFile(this.files[0],'11','yyzzFile')" accept=".pdf"
			                         style="display:none"/>
			                      <!-- <button type="button" class="deleteBtn" style="display:none">删除</button> -->
			                  	<input type="hidden" id="yyzzFileHid" value="CN201621048527.2" />
			                  	<span id="yyzzFileTip"></span>
			                 	</div>



			                 <div class="uploadTip">
			                 	<!-- <p class="fontWeight">附件内容说明：</p> -->
			                 	<p>请上传知识产权相关材料（知识产权证书及反映技术水平的证明材料等）。</p>

			         			<p>江苏省认定机构具体要求如下：</p>

			         				1、企业获得的授权知识产权证书及最近一次缴费证明，授权通知书及缴费收据；<br>2、通过受让、受赠、并购取得的知识产权需提供相关主管部门出具的变更证明；<br>3、知识产权有多个权属人时，需提供其他权属人同意该企业使用本知识产权申报高新技术企业的声明，所有权属人需加盖公章；<br>4、反映技术水平的证明材料（如专利的摘要等）；<br>5、参与制定标准情况及相关证明材料。


			                 	<p class="fontWeight">附件格式要求：</p>
			                 	<p>1、证明材料扫描上传。</p>
			                 	<p>2、只支持非加密PDF格式的文件上传。</p>
			                 	<p>3、单个文件大小不要超过2M。</p>
			                 </div>
			             </div>
                     </div>
                 </div>
                 <!--div-two end-->
             </div>

             <div class="box-footer text-right">
                 <button  type="submit" class="green" id="addsave" >保存</button>
                 <button type="button" class="btn-default" onclick="location.href='/xonlinereport/inforeport/DataInnocom/initDataInnocom.do?type=4&dataInnocomId=059f82ddd87411ebbf5000163e479657'">返回</button>
             </div>
         </div>
         <!--box-content end-->
         </table></form>



     </div>
 </div>














<!DOCTYPE HTML>
<html>
<head>
     <base href="https://slb.chinatorch.org.cn:443/xonlinereport/" />

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="renderer" content="webkit" />
	<link rel="icon" href="images/icons/favicon.ico" type="image/x-icon" />
    <meta http-equiv="Cache-Control" content="no-store" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- optional javascript: effects.js,jquery.js -->
    <!-- <link type="text/css" href="styles/global_3w.css" rel="stylesheet" /> --><!--æ°å¢-->
    <!-- <link type="text/css" href="styles/global.css" rel="stylesheet" />
    <link href="scripts/liger/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> -->
<!-- rapid-validation BEGIN -->
    <link type="text/css" href="scripts/rapid-validation/validation.css" rel="stylesheet" />
<!-- rapid-validation END-->

<!-- jQuery library begin -->
   <!--  <link rel="stylesheet" type="text/css" href="scripts/jquery/base/jquery.ui.all.css" /> -->
    <link type="text/css" rel="stylesheet" href="scripts/jquery/base/jquery.ui.all.css" />
<!-- jQuery library end -->
<!--DataTables begin-->
    <link href="widgets/extremecomponents/extremecomponents_3w.css"   type="text/css" rel="stylesheet" /><!--æ°å¢-->
    <link rel="stylesheet" type="text/css" href="scripts/DataTables-1.9.3/treeTable/jquery.treeTable.css"/>
    <link rel="stylesheet" type="text/css" href="scripts/DataTables-1.9.3/css/jquery.dataTables.css"/>
<!--DataTables end -->

<!-- dhtmlxCalendar library begin -->
    <link rel="stylesheet" type="text/css" href="scripts/dhtmlxCalendar/dhtmlxcalendar.css" />
    <link rel="stylesheet" type="text/css" href="scripts/dhtmlxCalendar/skins/dhtmlxcalendar_dhx_skyblue.css" />
<!-- dhtmlxCalendar library end -->

<!-- bootstrap V4
    <link href='styles/bootstrap.min.css' rel='stylesheet'>
 -->
 	<link rel="stylesheet" type="text/css" href="css/css/public.css"/>
    <link rel="stylesheet" href="plugins/valid/src/scss/default.css">
    <link rel="stylesheet" type="text/css" href="plugins/Font-Awesome/css/font-awesome.css"/>
    <link href="widgets/extremecomponents/extremecomponents_3w.css" type="text/css" rel="stylesheet" />

	 <link href="/xonlinereport/scripts/jquery-jbox/2.3/Skins/Bootstrap/jbox.min.css" rel="stylesheet" />
</head>
<body>






















<ul class="breadcrumb">

</ul>
<div class="container">

</div>

<script type="text/javascript">
	var jsContextPath = '/xonlinereport';
</script>
<!-- rapid-validation BEGIN -->
    <!--<script type="text/javascript" src="/xonlinereport/scripts/rapid-validation/prototype_for_validation.js"></script>-->
      <!--<script type="text/javascript" src="/xonlinereport/scripts/rapid-validation/validation_cn.js"></script>-->
<!-- rapid-validation END-->

<!-- jQuery library begin -->

   <!--  <script type="text/javascript" src="/xonlinereport/scripts/jquery/jquery-1.4.2.js"></script>Ã¦ÂÂ°Ã¥Â¢Â -->
     <!-- <script type="text/javascript" src="/xonlinereport/scripts/jquery/jquery-1.8.2.js"></script>-->
     <script type="text/javascript" src="/xonlinereport/js/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="/xonlinereport/scripts/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="/xonlinereport/scripts/jquery/jquery.bgiframe.js"></script>

   <!-- <script type="text/javascript" src="/xonlinereport/scripts/jquery/jquery-1.3.2.min.js"></script>  -->

   <!-- dhtmlxCalendar library begin -->

	<!-- dhtmlxCalendar library end -->
	<!-- jQuery library end -->
<!--æ¥ææä»¶-->
<script src="/xonlinereport/plugins/datepicker/WdatePicker.js"></script>

    <script type="text/javascript" src="/xonlinereport/scripts/application.js"></script>
    <script type="text/javascript" src="/xonlinereport/scripts/common.js"></script>
    <script type="text/javascript" src="/xonlinereport/scripts/util.js"> </script>
    <!--éç¨js-->
	<script src="/xonlinereport/js/js/jquery-2.1.4.min.js"></script>
	<script src="/xonlinereport/js/js/base.js"></script>
	<!--è¡¨åéªè¯js-->
	 <script src="/xonlinereport/plugins/valid/formValidator-4.1.3.js"></script>
	<script src="/xonlinereport/plugins/valid/formValidatorRegex.js"></script>
	<!-- <script src="/xonlinereport/plugins/valid/DateTimeMask.js"></script> -->
	<script src="/xonlinereport/js/js/myValidator.js"></script>
	<!--è¡¨åç¾åjs-->
	<script src="/xonlinereport/js/js/uniform-common.js"></script>
	<script src="/xonlinereport/plugins/valid/src/js/jquery.uniform.js"></script>
	<!--éç¨jsï¼ie8å¼å®¹æ§å¤çé®é¢-->
	<!--[if lt IE 9]>
	<script src="/xonlinereport/js/js/html5shiv.min.js"></script>
	<script src="/xonlinereport/js/js/placeholder.js"></script>
	<![endif]-->

	<script src="/xonlinereport/js/js/jquery.mousewheel.js"></script>
	<script>
		$(document).ready(function() {
		var ua = window.navigator.userAgent;
		var old_ie = ua.indexOf('MSIE ');
		var new_ie = ua.indexOf('Trident/');

		if ((old_ie > -1) || (new_ie > -1)) {
		    var $doc = $(top.document);// é¡¶å±é¡µé¢ä¸å®è¦å¨è¿éè·åï¼ mousewheeläºä»¶ä¸­è·åä¸å°ï¼ åå ä¸æ
		    $("body").on('mousewheel', function(event, delta) {
			        if (delta < 0) $doc.scrollTop($doc.scrollTop() + 25);
			        else if (delta > 0) $doc.scrollTop($doc.scrollTop() - 25);
			        return false;
		    	});
			}
		});
	</script>
	<script src="/xonlinereport/scripts/jquery-jbox/2.3/jquery.jBox-2.3.min.js" type="text/javascript"></script>
	<script src="/xonlinereport/js/common.js" type="text/javascript"></script>
	<script charset="UTF-8" language="javascript" type="text/javascript" >
		$(function(){
			var alertMessage = "";
			if(alertMessage!=null && alertMessage!=""){
				if(alertMessage=='保存成功!'||alertMessage=='保存成功！'||alertMessage=='保存成功'||alertMessage=='操作成功'){
					showTip(alertMessage,'success',3000);
				}else if(alertMessage == '请完善企业的技术领域'){
					alert(alertMessage);
					location.href = '/xonlinereport/inforeport/EntInfoChange/initRegDataForUpdate.do';
				}else{
					closeTip();
					alert(alertMessage);
				}
			}else{
				closeTip();
			}
		});

	</script>
</body>
</html>
<script type="text/javascript">
	$(document).ready(function() {
		parent.document.getElementById("innocomFrame").height = $(document.body).height() + 30 + "px";
		var ua = window.navigator.userAgent;
		var old_ie = ua.indexOf('MSIE ');
		var new_ie = ua.indexOf('Trident/');
		titleChange();
		if ((old_ie > -1) || (new_ie > -1)) {
		    var $doc = $(top.document);// 顶层页面一定要在这里获取， mousewheel事件中获取不到， 原因不明
		    $("body").on('mousewheel', function(event, delta) {
			        if (delta < 0) $doc.scrollTop($doc.scrollTop() + 25);
			        else if (delta > 0) $doc.scrollTop($doc.scrollTop() - 25);
			        return false;
		    	});
			};
			//$("#propertyCategory option[value='1']").before("<option name='opo'>   ---I类--- </option>");
			//$("#propertyCategory option[value='2']").before("<option name='opt'>    ---II类---  </option>");
			//$("#propertyCategory option[name='opo']").attr("disabled", true);
			//$("#propertyCategory option[name='opt']").attr("disabled",true);

			$("#propertyCategory").change(function(){
				titleChange();
			});

			function titleChange(){
				var _pc = $("#propertyCategory").val();
				if(_pc && _pc=='4'){
					$("#_numlab").html('著作权号')
				}else if(_pc && _pc=='5'){
					$("#_numlab").html('专利号/著作权号')
				}else{
					$("#_numlab").html('专利号')
				}
			}

			$("#propertyNo").change(function(){
				$("#propertySortNo").val($("#propertyNo").val());
			});
	});


		//知识产权校验标识；0：知识产权无效；1：正在校验中还未收到后台响应；2：校验失败（佰腾未返回数据）；3：校验失败（接口响应异常）；4：佰腾返回的知识产权权属人不是当前企业
		var notFindHtml = "<span>未检索到该知识产权，请核对专利号/著作权号，如果输入正确，<span class='red'>请上传知识产权证明材料</span>，科技主管部门会重点审查本知识产权。</span>";
		var notOwnerHtml = "<span class='red'>贵企业名称与权利人名称（<span id='ownerName'>***</span>）不一致</span>，请核对专利号/著作权号是否输入正确。"
		 +"<span class='red'>如果输入正确并确认贵公司是本知识产权权利人</span>，您仍然可以"
		 +"<span class='background-yellow'>保存本知识产权信息并提交申报书，但必须上传附件</span>"
		 +"——本知识产权证明材料和权利人证明材料（例如市场监督管理局提供的企业名称变更证明），以便地方高新技术企业认定机构核查本知识产权的归属。";
		var invalidHtml = "<span>该知识产权无效，请核对专利号/著作权号，如果输入正确，<span class='red'>请上传证明材料</span>，科技主管部门会重点审查本知识产权。<br></span>";

		var flag;
		var cpa;
		var currentDate = '2021-06-30';
		$("#addsave").click(function(){
			var f=$("#yyzzFileHid").val();
			var mc1=$("#propertyNameyc").val();
			var mc2=$("#propertyName").val();
			if(mc1!=mc2){
				var file = $("#yyzzFile").val();
				if(file==null ||file==""){
					alert("您修改了知识产权名称，请上传知识产权证明材料，科技主管部门会重点审查本知识产权。");
					return false;
				}
			}

			if(flag == null){
				flag=99;
				findIpBySqh();
			}
			if(flag == 1){
				//alert("正在校验专利号/著作权号，请稍后...");
				showTip("正在校验专利号/著作权号，请稍后...",'loading',2000);
				return false;
			}
			if(flag == 2){
				//佰腾未返回数据时校验授权日期，如果为两个月前则不允许添加
				/*$("#propertyAccreditTip").html('<span class="onError_top">未检索到该知识产权，请核对专利号/著作权号，如果输入正确，请提供知识产权证明材料，科技主管部门会重点审查本知识产权。</span>');
				$("#propertyAccredit").removeClass('input_correct').addClass('input_error');
				$("#propertyAccreditTip").css('color','orange');*/
				$("#checkTip").html(notFindHtml);
				$("#checkTip").css('display','block');
				iframeHeight1();

				if(f==null ||f==""){
					alert("未检索到该知识产权，请核对专利号/著作权号，如果输入正确，请上传知识产权证明材料，科技主管部门会重点审查本知识产权。");
					return false;
				}
			}
			if(flag == 3){
				/*$("#propertyAccreditTip").html('<span class="onError_top">未检索到该知识产权，请核对专利号/著作权号，如果输入正确，请提供知识产权证明材料，科技主管部门会重点审查本知识产权。</span>');
				$("#propertyAccredit").removeClass('input_correct').addClass('input_error');
				$("#propertyAccreditTip").css('color','orange');*/
				$("#checkTip").html(notFindHtml);
				$("#checkTip").css('display','block');
				iframeHeight1();
				if(f==null ||f==""){
					alert("未检索到该知识产权，请核对专利号/著作权号，如果输入正确，请提供知识产权证明材料，科技主管部门会重点审查本知识产权。");
					return false;
				}
			}
			if(flag == 0){
				/*$("#propertyAccreditTip").html('<span class="onError_top">无效的知识产权不允许添加</span>');
				$("#propertyAccredit").removeClass('input_correct').addClass('input_error');
				$("#propertyAccreditTip").css('color','red');
				alert("无效的知识产权不允许添加");
				return false;*/
				if(cpa!=null){
					$("#checkTip").html(invalidHtml+notOwnerHtml);
					$("#ownerName").html(cpa);
				}else{
					$("#checkTip").html(invalidHtml);
				}
				$("#checkTip").css('display','block');
				iframeHeight1();
				if(f==null ||f==""){
					alert("该知识产权无效，请核对专利号/著作权号，如果输入正确，请上传证明材料，科技主管部门会重点审查本知识产权。");
					return false;
				}
			}
			if(flag == 4){
				/*$("#propertyAccreditTip").html('<span class="onError_top">贵企业名称与权利人名称（'+cpa+'）不一致，请核对专利号/著作权号是否输入正确。如果输入正确，请继续输入该知识产权的所有信息后，点击上传附件（必须包括知识产权证明材料和市场监督管理局提供的企业名称变更证明材料），地方高新技术企业认定机构将会重点核查本知识产权的归属。</span>');
				$("#propertyAccredit").removeClass('input_correct').addClass('input_error');
				$("#propertyAccreditTip").css('color','orange');*/
				$("#checkTip").html(notOwnerHtml);
				$("#ownerName").html(cpa);
				$("#checkTip").css('display','block');
				iframeHeight1();
				if(f==null ||f==""){
					alert("贵企业名称与权利人名称（"+cpa+"）不一致，请核对专利号/著作权号是否输入正确。如果输入正确，请继续输入该知识产权的所有信息后，点击上传附件（必须包括知识产权证明材料和市场监督管理局提供的企业名称变更证明材料），地方高新技术企业认定机构将会重点核查本知识产权的归属。");
					return false;
				}
			}
		});

		/*根据授权号，从佰腾获取数据*/
		function findIpBySqh(){

			var status=false;
			var ipType =  $("#propertyCategory").val();
			var val=$("#propertyAccredit").val();

    		if(!ipType || ipType == 0){
    			return ;
    		}
    		if(ipType == 4){//软著格式2019SR0000102/2000SR0138
    			var regexp = /^[0-9]{4}[E,R,S,B,J,A]{2,4}[0-9]{1,10}$/;
    			if(regexp.test(val)){
    				status=true;
    			}
    		}else if(ipType == 2 || ipType == 3 || ipType == 6 || ipType == 12 ){//专利格式ZL*********
    			var regexp = /^(ZL)[0-9]{8,12}\.[0-9X]{1}$/;
    			if(regexp.test(val)){
    				status=true;
    			}
    		}else{
    			var regexp = /^[\u4e00-\u9fa50-9A-Z\.（）、\-]*$/;
    			if(regexp.test(val)){
    				status=true;
    			}
    		}
			if(status){
				$.ajax({
			        url : "/xonlinereport/inforeport/DataInnocom/findIpBySqh.do",// 跳转到 action
					type:"post",
					dataType:"json",
					data:{
						"dataEprIntellectualPropert.Plb" : $("#propertyCategory").val(),
					    "dataEprIntellectualPropert.Psqh":$("#propertyAccredit").val()
					},beforeSend: function () {
						$("#checkTip").css('display','none');
						flag = 1;//正在校验中...
						$("#checkingTip").html('正在校验专利号/著作权号，请稍后...');
						$("#checkingTip").css('display','block');
					},
					success:function(data){
						var f=$("#yyzzFileHid").val();
						flag=99;
						$("#checkingTip").css('display','none');
						if(data.msg=='success'){

							$("#txtDate").val(data.ip.psqrqString);
							$("#fromIpId").val(data.ip.fromIp);
							$("#propertyNameyc").val(data.ip.psqxmmc);
							if($("#propertyName").val()==null||$("#propertyName").val()==""){
								$("#propertyName").val(data.ip.psqxmmc);
							}
							//$("#propertyName").val(data.ip.psqxmmc);
							//if(data.ip.pssxmbh==''){
								//$("#propertyName").removeAttr("readOnly");
							//}else{
								//$("#propertyName").attr("readOnly",true);
							//}
							$("#xmbhId").val(data.ip.pssxmbh);
							$("#cpaId").val(data.ip.cpa);
							$("#propertyWay").val(data.ip.phdfs);
							$("#propertyAccredit").val(data.ip.psqh);
							$("#propertyWay").parent().children("span").text( $("#propertyWay").find("option:selected").text());
							//$("#yyzzFileHid").val(data.ip.pssxmbh);

							//if(data.ip.cpa.indexOf(currentUser)==-1){
							if(!data.ip.isAdd){
								/* $("#propertyAccreditTip").html('<span class="onError_top">贵企业名称与权利人名称（'+data.ip.cpa+'）不一致，请核对专利号/著作权号是否输入正确。如果输入正确，请继续输入该知识产权的所有信息后，点击上传附件（必须包括知识产权证明材料和市场监督管理局提供的企业名称变更证明材料），地方高新技术企业认定机构将会重点核查本知识产权的归属。</span>');//.text("请核对专利号/著作权号是否正确？");
								$("#propertyAccredit").removeClass('input_correct').addClass('input_error');
								$("#propertyAccreditTip").css('color','orange'); */
								cpa=data.ip.cpa;
								$("#checkTip").html(notOwnerHtml);
								$("#ownerName").html(cpa);
								$("#checkTip").css('display','block');
								iframeHeight1();
								flag = 4;
							}else{
								$("#propertyAccreditTip").text("");
							}
							//无效的IP不允许添加。update:2020-05-14
							//需求变更无效的IP允许添加。update:2020-06-23
							if(data.ip.addStatus == "无效"){
								/* $("#propertyAccreditTip").html('<span class="onError_top">无效的知识产权不允许添加</span>');//text("无效的知识产权不允许添加");
								$("#propertyAccredit").removeClass('input_correct').addClass('input_error');
								$("#propertyAccreditTip").css('color','red');
								flag = 0; */
								if(flag==4){
									$("#checkTip").html(invalidHtml+notOwnerHtml);
									$("#ownerName").html(cpa);
								}else{
									$("#checkTip").html(invalidHtml);
								}

								$("#checkTip").css('display','block');
								iframeHeight1();
								flag = 0;
							}
						}else if(data.msg=='failure_null'){
							//
							//$("#propertyName").removeAttr("readOnly");
							$("#propertyNameyc").val(null);
							$("#propertyAccreditTip").text("");
							$("#cpaId").val(null);
							$("#xmbhId").val(null);
							//$("#yyzzFileHid").val(null);
							$("#checkTip").html(notFindHtml);
							$("#checkTip").css('display','block');
							iframeHeight1();
							flag = 2;//佰腾未返回数据
						}else if(data.msg=='failure'){
							//
							//$("#propertyName").removeAttr("readOnly");
							$("#propertyNameyc").val(null);
							$("#propertyAccreditTip").text("");
							$("#cpaId").val(null);
							$("#xmbhId").val(null);
							//$("#yyzzFileHid").val(null);
							$("#checkTip").html(notFindHtml);
							$("#checkTip").css('display','block');
							iframeHeight1();
							flag = 3;//接口响应异常
						}
					},
					error : function() {
						$("#checkingTip").css('display','block');
					}
				});
			}
		}

		function openIp(link){
			var form = document.getElementById("addForm");
			form.target = "newWindow";
			var iWidth=1010;
			var iLeft = (window.screen.availWidth - 30 - iWidth) / 2;
			var win = window.open(
					"about:blank",
					"newWindow",
					"left="+iLeft+",top=100, location=no, directories=no, titlebar=no,status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=1010, height=550"
			);
			win.focus();
			/* var iWidth=1010;
			var iLeft = (window.screen.availWidth - 30 - iWidth) / 2;
			window.open(
			"confirmIp",
			"left="+iLeft+",top=100, location=no, directories=no, titlebar=no,status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=1010, height=550"
			); */
			form.action=link;
			form.method = "POST";
			form.submit();

		}
</script>
<script>
/* 上传图片 */
function fileClick(ele) {
	$("#"+ele).click();
}
function handleFile(file, type ,fileId) {
	var size = (file.size / 1024 / 1024).toFixed(2);
	if (size > 2) {
		alert("上传文件不能超过2M，请重新上传!");
		return false;
	};
	var fobj = $("#" + fileId).val();
	var fileType = getFileName(fobj).substring(getFileName(fobj).lastIndexOf("."), getFileName(fobj).length);

	if(!/\.(pdf|PDF)$/.test(fileType)) {
		$("#" + fileId).val("");
		alert("请上传pdf文件！")
       	return false;
    }
	 $("#" + fileId + "Name").attr("value", getFileName(fobj)).attr("title",
			getFileName(fobj));
	 //delFiles(fileId);
	 //uploadFiles(file,type);
	 $("#yyzzFileTip").text(getFileName(fobj));
	 $("#yyzzFileHid").val(getFileName(fobj));
};


/* function uploadFiles(file,type) {
	if(file.size == 0) {
	   alert('请选择文件');
	   return;
	}else{
		var formData = new FormData();
	    var s = file.name;
	    formData.append("upload", file);
	    var dataId = $("#hidId").val();
			$.ajax({
				url : '/xonlinereport/inforeport/DataEntNameChange/saveImg.do?imgType=' + type +"&dataId=" + dataId,
				type : 'POST',
				data : formData,
				async : false,
				cache : false,
				contentType : false,
				processData : false,
				success : function(data) {
					var val = eval('(' + data + ')');
					if(type=='1'){
						$("#yyzzFileHid").val(val.id);
						$("#yyzzFilea").attr("href", val.path);
						$("#yyzzFileimg").attr("src", val.path);
						$('#yyzzFilea').css('display','block');
					$("#yyzzFile").attr("disabled",true);
					}else if(type=='2'){
					$("#gqrdFile1Hid").val(val.id);
						$("#gqrdFilea1").attr("href", "/xonlinereport/inforeport/DataEntNameChange/downLoad.do?id="+val.id);
					$("#gqrdFilea1").html("工商变更证明下载");
						//$("#gqrdFileimg1").attr("src", val.path);
						$('#gqrdFilea1').css('display','block');
					$("#gqrdFile1").attr("disabled",true);
					}else if(type=='3'){
					$("#gqrdFile2Hid").val(val.id);
						$("#gqrdFilea2").attr("href", "/xonlinereport/inforeport/DataEntNameChange/downLoad.do?id="+val.id);
					$("#gqrdFilea2").html("变更申请表盖章扫描件下载");
						//$("#gqrdFileimg2").attr("src", val.path);
						$('#gqrdFilea2').css('display','block');
					$("#gqrdFile2").attr("disabled",true);
					}
					iframeHeight1();
				},
				error : function(returndata) {
					alert("网络错误请重试");
				}
			});
	}
} */
function getFileName(o) {
	if (o) {
		var pos = o.lastIndexOf("\\");
			return o.substring(pos + 1);
		} else {
		return null;
	}
};
</script>
</body>
</html>
